Component

data class Component(val content: @Composable RowScope.(Modifier) -> Unit) : ChipDecoration.Icon

Represents a composable function that displays an icon before/after the chip's text. The icon will be 18.dp tall and will be tinted with SourceChip.Style.contentColour if no color is set in the component.

Constructors

Link copied to clipboard
constructor(content: @Composable RowScope.(Modifier) -> Unit)

Properties

Link copied to clipboard
open override val content: @Composable RowScope.(Modifier) -> Unit

The composable function to display the icon. The provided modifier must be set on the content.

Link copied to clipboard
open override val height: Dp

The height of the icon/image.